<?php defined('IN_IA') or exit('Access Denied');?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" /><!--隐藏状态栏 -->
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<meta HTTP-EQUIV="expires" CONTENT="0">
<title><?php  echo $sets[0]['title'];?></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="<?php  echo MODULE_URL;?>/template/mobile/css/styles.css?v=d3s2" />
</head>
<body>
<div id="header">
   
</div>

<div id="main">
   <h2 class="top_title"><?php  echo $sets[0]['title'];?></h2>
	<div class="demo"><img src="<?php  echo $userInfo['headimgurl'];?>" style="width:35px"><a>欢迎 <i><?php  echo $userInfo['nickname'];?></i></a>
		<div id='quiz-container'></div>
		
	</div>
</div>

<div id="footer">
    <p><?php  echo $sets[0]['copyright'];?></p>
</div>

<script type="text/javascript" src="<?php  echo MODULE_URL;?>/template/mobile/js/jquery.min.js"></script>
<script src="<?php  echo MODULE_URL;?>/template/mobile/js/quiz.js?v=dfsf"></script>
<script>
	var init={'questions':
		<?php  echo(json_encode($data));?>
	};
	$(function(){
		$('#quiz-container').jquizzy({
			sendScoreURL: "<?php  echo $this->createMobileUrl('Index')?>",
			pmURL: "<?php  echo $this->createMobileUrl('Orderpage')?>",
	        questions: init.questions
	    });
	});
</script>
		 		
<?php  echo register_jssdk(false);?>
<script type="text/javascript">
    initShare();
    function initShare(){
        wx.ready(function () {
            sharedata = {
                title: "<?php  echo $sets[0]['share_title'];?>"+" "+"<?php  echo $sets[0]['share_content'];?>",
                desc: "<?php  echo $sets[0]['share_content'];?>",
                link: window.location.href,
                imgUrl: "<?php  echo $_W['attachurl'];?><?php  echo $sets[0]['share_icon'];?>",
                success: function(){

                },
                cancel: function(){
                    //alert("分享失败，可能是网络问题，一会儿再试试？");
                }
            };
            wx.onMenuShareAppMessage(sharedata);
            wx.onMenuShareTimeline(sharedata);
        });
    }
</script>
</body>
</html>
